<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>登录 - 心灵港湾</title>
    <link rel="stylesheet" href="../css/common.css">
    <link rel="stylesheet" href="../css/login.css">
    <script src="../utils/validUtils.js"></script>
    <script src="../js/login.js"></script>
</head>
<body>
    <div class="main-container">
        <div class="left-section"></div>
        <div class="right-section">
            <div class="login-header">
                心理健康科普平台
            </div>
            <div class="login-container">
                <h2>欢迎回来</h2>
                <form id="loginForm">
                    <div class="form-group">
                        <label for="username">用户名/手机号</label>
                        <input type="text" id="username" name="username" required>
                        <span class="error-message"></span>
                    </div>
                    <div class="form-group">
                        <label for="password">密码</label>
                        <input type="password" id="password" name="password" required>
                        <button type="button" class="toggle-password" aria-label="显示密码"></button>
                        <span class="error-message"></span>
                    </div>
                    <button type="submit" class="btn">登录</button>
                    <div class="register-link">
                        还没有账号？<a href="register.html">立即注册</a>
                    </div>
                </form>
            </div>
        </div>
    </div>
</body>
</html>